const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  name: state => state.user.userInfo.username,
  avatar: state => state.user.userInfo.staffPhoto
}
// 利用vuex里getters的方式实现页面渲染简易式写法
export default getters
